package com.zark.myspringboot.web.listeners;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;

public class ApplicationEnvironmentPreparedListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> {
    private Logger logger = LoggerFactory.getLogger(ApplicationEnvironmentPreparedListener.class);
    
	@Override
	public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
		System.err.println("ApplicationEnvironmentPreparedEvent -- spring boot 对应Enviroment已经准备完毕，但此时上下文context还没有创建。");
	}

}
